package com.marvels.product.param.service;

import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptPreTerminationFeeDTO;
import com.marvels.product.param.dto.McptProduct;

public interface PreTerminateFeeService {

	PageInfo<McptPreTerminationFeeDTO> getPageInfoByParam(Map<String, Object> param) throws MarvelsBusinessException;

	McptPreTerminationFeeDTO selectByPrimaryKey(Long rateId) throws MarvelsBusinessException;

	int insert(McptPreTerminationFeeDTO dto) throws MarvelsBusinessException;

	int updateByPrimaryKey(McptPreTerminationFeeDTO dto) throws MarvelsBusinessException;

	int updateStatus(McptPreTerminationFeeDTO dto) throws MarvelsBusinessException;
	
	/**根据查询产品小类提前结清code查询提前结清费
	 * @author 娄凯琦
	 * @date 2018年5月9日  
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptPreTerminationFeeDTO getPreTerminateFeeByPreTerminateFeeCode(McptProduct dto) throws MarvelsBusinessException;
	/**
	 * 根据主键删除记录
	 * @param dto
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public int deleteByPrimaryKey(McptPreTerminationFeeDTO dto) throws MarvelsBusinessException;
	
}
